/* 
 * File:   Calendar.c
 * Author: Muqtafi Akhmad
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "Calendar.h"

int main(int argc, char** argv) {
    // Kamus
    char** args = (char**) malloc(100 * sizeof (char*));
    
    Calendar cal = MakeCalendar();
    // Add an event
    args[1] = "100";
    Add(&cal, args);
    PrintInfo(GetEvents((cal)));
    // Print event from given date
    args[1] = "2012-10-06";
    ShowDetail(&cal, args);
    Dealokasi(&(cal.events));
    return (EXIT_SUCCESS);
}

